import instance from '@/utils/request.js'

export const login = (data) => {
  return instance({
    url: '/auth/login',
    method: 'post',
    data,
  })
}

export const register = (data) =>{
  return instance({
    url: '/photographer/register',
    method: 'post',
    data
  })
}

export const verificationCode = () => {
  return instance({
    url: '/auth/captcha',
    method: 'get',
  })
}
